package com.nation.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Date;

/**
 * Created by dqd on 2017/11/3.
 */
@Entity
@Table(name = "V_science_and_technology_education", schema = "show_nation", catalog = "")
public class VScienceAndTechnologyEducation implements Serializable {
    private int id;
    private String country_code;
    private String refrence;
    private String statistics;
    private String conferences;
    private String picture;
    private String recoder_id;
    private String recoder_time;
    private String nation_z;
    private String science_technology_policy;
    private String technology_agency;
    private String think_tank;
    private String educational_scheme;
    private String university;

    private String continent;

    public VScienceAndTechnologyEducation(){}
    public VScienceAndTechnologyEducation(String statistics, String conferences, String science_technology_policy, String technology_agency,
                                          String think_tank, String educational_scheme, String university, String refrence, String country_code){
        this.statistics =statistics ;
        this. conferences= conferences;
        this.science_technology_policy = science_technology_policy;
        this.technology_agency = technology_agency;
        this. think_tank= think_tank;

        this. educational_scheme=educational_scheme ;
        this.university =university ;
        this.refrence =refrence ;
        this.country_code =country_code ;
    }

    public String getContinent() {
        return continent;
    }

    public void setContinent(String continent) {
        this.continent = continent;
    }
    @Basic
    @Column(name = "id", nullable = false)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "country_code", nullable = false, length = 4)
    public String getCountry_code() {
        return country_code;
    }

    public void setCountry_code(String country_code) {
        this.country_code = country_code;
    }

    @Basic
    @Column(name = "refrence", nullable = false, length = 255)
    public String getRefrence() {
        return refrence;
    }

    public void setRefrence(String refrence) {
        this.refrence = refrence;
    }

    @Basic
    @Column(name = "statistics", nullable = false, length = 255)
    public String getStatistics() {
        return statistics;
    }

    public void setStatistics(String statistics) {
        this.statistics = statistics;
    }

    @Basic
    @Column(name = "conferences", nullable = false, length = 255)
    public String getConferences() {
        return conferences;
    }

    public void setConferences(String conferences) {
        this.conferences = conferences;
    }

    @Basic
    @Column(name = "picture", nullable = true, length = 255)
    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    @Basic
    @Column(name = "recoder_id", nullable = false, length = 3)
    public String getRecoder_id() {
        return recoder_id;
    }

    public void setRecoder_id(String recoder_id) {
        this.recoder_id = recoder_id;
    }

    @Basic
    @Column(name = "recoder_time", nullable = false)
    public String getRecoder_time() {
        return recoder_time;
    }

    public void setRecoder_time(String recoder_time) {
        this.recoder_time = recoder_time;
    }

    @Basic
    @Column(name = "nation_z", nullable = false, length = 255)
    public String getNation_z() {
        return nation_z;
    }

    public void setNation_z(String nation_z) {
        this.nation_z = nation_z;
    }

    @Basic
    @Column(name = "science_technology_policy", nullable = true, length = 255)
    public String getScience_technology_policy() {
        return science_technology_policy;
    }

    public void setScience_technology_policy(String science_technology_policy) {
        this.science_technology_policy = science_technology_policy;
    }

    @Basic
    @Column(name = "technology_agency", nullable = true, length = 255)
    public String getTechnology_agency() {
        return technology_agency;
    }

    public void setTechnology_agency(String technology_agency) {
        this.technology_agency = technology_agency;
    }

    @Basic
    @Column(name = "think_tank", nullable = true, length = 255)
    public String getThink_tank() {
        return think_tank;
    }

    public void setThink_tank(String think_tank) {
        this.think_tank = think_tank;
    }

    @Basic
    @Column(name = "educational_scheme", nullable = true, length = 255)
    public String getEducational_scheme() {
        return educational_scheme;
    }

    public void setEducational_scheme(String educational_scheme) {
        this.educational_scheme = educational_scheme;
    }

    @Basic
    @Column(name = "university", nullable = true, length = 255)
    public String getUniversity() {
        return university;
    }

    public void setUniversity(String university) {
        this.university = university;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        VScienceAndTechnologyEducation that = (VScienceAndTechnologyEducation) o;

        if (id != that.id) return false;
        if (country_code != null ? !country_code.equals(that.country_code) : that.country_code != null) return false;
        if (refrence != null ? !refrence.equals(that.refrence) : that.refrence != null) return false;
        if (statistics != null ? !statistics.equals(that.statistics) : that.statistics != null) return false;
        if (conferences != null ? !conferences.equals(that.conferences) : that.conferences != null) return false;
        if (picture != null ? !picture.equals(that.picture) : that.picture != null) return false;
        if (recoder_id != null ? !recoder_id.equals(that.recoder_id) : that.recoder_id != null) return false;
        if (recoder_time != null ? !recoder_time.equals(that.recoder_time) : that.recoder_time != null) return false;
        if (nation_z != null ? !nation_z.equals(that.nation_z) : that.nation_z != null) return false;
        if (science_technology_policy != null ? !science_technology_policy.equals(that.science_technology_policy) : that.science_technology_policy != null)
            return false;
        if (technology_agency != null ? !technology_agency.equals(that.technology_agency) : that.technology_agency != null)
            return false;
        if (think_tank != null ? !think_tank.equals(that.think_tank) : that.think_tank != null) return false;
        if (educational_scheme != null ? !educational_scheme.equals(that.educational_scheme) : that.educational_scheme != null)
            return false;
        if (university != null ? !university.equals(that.university) : that.university != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (country_code != null ? country_code.hashCode() : 0);
        result = 31 * result + (refrence != null ? refrence.hashCode() : 0);
        result = 31 * result + (statistics != null ? statistics.hashCode() : 0);
        result = 31 * result + (conferences != null ? conferences.hashCode() : 0);
        result = 31 * result + (picture != null ? picture.hashCode() : 0);
        result = 31 * result + (recoder_id != null ? recoder_id.hashCode() : 0);
        result = 31 * result + (recoder_time != null ? recoder_time.hashCode() : 0);
        result = 31 * result + (nation_z != null ? nation_z.hashCode() : 0);
        result = 31 * result + (science_technology_policy != null ? science_technology_policy.hashCode() : 0);
        result = 31 * result + (technology_agency != null ? technology_agency.hashCode() : 0);
        result = 31 * result + (think_tank != null ? think_tank.hashCode() : 0);
        result = 31 * result + (educational_scheme != null ? educational_scheme.hashCode() : 0);
        result = 31 * result + (university != null ? university.hashCode() : 0);
        return result;
    }
}
